
package com.deneme.ozveri.objects;

import java.util.ArrayList;
import java.util.Hashtable;

public class MenuOrderItem {

	private String orderName;
	private int orderPrice;
	private String orderDescription;
	private String orderShortDescription;
	private int orderId;
	private int orderQuantity;
	private int orderTotalPrice;
	private ArrayList<MenuOrderItemExtras> extras;
	private Hashtable<Integer, Integer> extraList;


	public MenuOrderItem getCopy(){
		MenuOrderItem returnItem = new MenuOrderItem();
		returnItem.setOrderDescription(orderDescription);
		returnItem.setOrderShortDescription(orderShortDescription);		
		returnItem.setOrderId(orderId);
		returnItem.setOrderName(orderName);		
		returnItem.setOrderPrice(orderPrice);
		returnItem.setOrderQuantity(orderQuantity);
		returnItem.setOrderTotalPrice(orderTotalPrice);
		returnItem.setExtras(extras);
		returnItem.extraList = new Hashtable<Integer, Integer>();
		for (int key : extraList.keySet()) {
			int returnKey = key;
			int returnVal = extraList.get(key);
			returnItem.extraList.put(returnKey, returnVal);
		}
		return returnItem;
	}


	public String getOrderName() {
		return orderName;
	}
	public void setOrderName(String orderName) {
		this.orderName = orderName;
	}
	public int getOrderPrice() {
		return orderPrice;
	}
	public void setOrderPrice(int orderPrice) {
		this.orderPrice = orderPrice;
	}
	public String getOrderDescription() {
		return orderDescription;
	}
	public void setOrderDescription(String orderDescription) {
		this.orderDescription = orderDescription;
	}
	public int getOrderId() {
		return orderId;
	}
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	public int getOrderQuantity() {
		return orderQuantity;
	}
	public void setOrderQuantity(int orderQuantity) {
		this.orderQuantity = orderQuantity;
	}
	public ArrayList<MenuOrderItemExtras> getExtras() {
		return extras;
	}
	public void setExtras(ArrayList<MenuOrderItemExtras> extras) {
		this.extras = extras;
	}
	public Hashtable<Integer, Integer> getExtraList() {
		return extraList;
	}
	public void setExtraList(Hashtable<Integer, Integer> extraList) {
		this.extraList = extraList;
	}
	public String getOrderShortDescription() {
		return orderShortDescription;
	}
	public void setOrderShortDescription(String orderShortDescription) {
		this.orderShortDescription = orderShortDescription;
	}
	public int getOrderTotalPrice() {
		return orderTotalPrice;
	}
	public void setOrderTotalPrice(int orderTotalPrice) {
		this.orderTotalPrice = orderTotalPrice;
	}



}
